
#include "BridgeObject.h"

BridgeObject::BridgeObject(PdfJsBridge* pBridge)
	: QObject(pBridge)
	, m_bridgePtr(pBridge)
{
	Q_ASSERT(pBridge != nullptr);
}

void BridgeObject::jsInitialized()
{
	m_bridgePtr->jsInitialized();
}

void BridgeObject::jsReportDestinations(const QStringList& destinations)
{
	m_bridgePtr->jsReportDestinations(destinations);
}

void BridgeObject::jsChapterList(const QJsonValue& list)
{
	m_bridgePtr->jsChapterList(list);
}

void BridgeObject::jsChapterListLoaded(const QJsonValue& list)
{
	m_bridgePtr->jsChapterListLoaded(list);
}

void BridgeObject::jsCurrentPage(int nPage)
{
	m_bridgePtr->jsCurrentPage(nPage);
}

void BridgeObject::jsPageCount(int nPageCount)
{
	m_bridgePtr->jsPageCount(nPageCount);
}

void BridgeObject::jsPageScale(double fScale)
{
	m_bridgePtr->jsPageScale(fScale);
}

void BridgeObject::jsFindState(int nState)
{
	m_bridgePtr->jsFindState(nState);
}

void BridgeObject::jsLoaded()
{
	m_bridgePtr->jsLoaded();
}

void BridgeObject::jsClosed()
{
	m_bridgePtr->jsClosed();
}
